/**
 * 
 */
package com.android.demolayoutpages;

import com.android.demolayoutpages.ChooseGoalListAdapter.ViewHolder;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

/**
 * @author INVEERA
 *
 */
public class StoryBoardGoalListAdapter extends BaseAdapter {

	private Context context;

	public StoryBoardGoalListAdapter(Context context) {
		 this.context = context ;
	}

	@Override
	public int getCount() {
		 return 7;
	}

	@Override
	public Object getItem(int position) {
		 return null;
	}

	@Override
	public long getItemId(int position) {
		 return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		LayoutInflater inflater=(LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
		View view;
		ViewHolder holder;
		if (convertView == null) {
			convertView = inflater.inflate(R.layout.row_storyboard_goallist, null);
			holder = new ViewHolder();
			holder.tvGoalTitle= (TextView)convertView.findViewById(R.id.txt_storyboard_goal_title);
			convertView.setMinimumHeight(50);
			convertView.setTag(holder);
		}else {
			holder = (ViewHolder) convertView.getTag();
		}
		holder.tvGoalTitle.setText("eat healther");
		 return convertView;
	}
	class ViewHolder{
		TextView tvGoalTitle;
	}

}
